package xiaozu.chanping.Controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xiaozu.chanping.Service.firstService;

@RestController
@RequestMapping("/test")
public class firstController {
    @Autowired
    private firstService FirstService;

    @PostMapping("/apiTest")
    public String apiTest(){
        String answer=FirstService.getApi();
        return answer;
    }
}
